package com.sp2.dev.test.listener.listenertest;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-2-10
 * Time: 下午2:55
 * To change this template use File | Settings | File Templates.
 */
public class LookImpl implements Look {

    private String name;


    public LookImpl(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void talk(Target target,String talkMessage) {
        System.out.println(this.name + " talk ");
        target.noifyLook(this.name,talkMessage);
    }

    public void getMessage(String talkMessage) {
        System.out.println(this.name + " getMessage " + talkMessage);
    }
}
